/** @type {import('electron-builder').Configuration} */
const config = {
	appId: 'in.cutelabs.pixziplite',
	productName: 'PixZip Lite',
	asar: false,
	directories: {
		buildResources: 'build'
	},
	files: [
		'!**/.vscode/*',
		'!src/*',
		'!electron.vite.config.{js,ts,mjs,cjs}',
		'!{.eslintignore,.eslintrc.cjs,.prettierignore,.prettierrc.yaml,dev-app-update.yml,CHANGELOG.md,README.md}',
		'!{.env,.env.*,.npmrc,pnpm-lock.yaml}',
		'!{tsconfig.json,tsconfig.node.json,tsconfig.web.json}',
		'!**/website/*'
	],
	artifactName: '${productName}-${version}-${os}-${arch}.${ext}',
	win: {
		target: 'nsis',
		icon: 'resources/icons/win/icon.ico'
	},
	nsis: {
		oneClick: false,
		perMachine: false,
		allowToChangeInstallationDirectory: true,
		deleteAppDataOnUninstall: true
	},
	mac: {
		target: 'dmg',
		icon: 'resources/icons/mac/icon.icns',
		minimumSystemVersion: '12.0'
	}
};

module.exports = config;
